package org.example.controller;

import org.example.domain.SkuDO;
import org.example.dto.GoodsDetailDTO;
import org.example.dto.GoodsDetailReqDTO;
import org.example.mapper.SkuMapper;
import org.example.service.GoodsService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController("goods")
public class GoodsController {

    @Resource
    private GoodsService goodsService;

    @RequestMapping("detail")
    public GoodsDetailDTO detail(@Validated @RequestBody GoodsDetailReqDTO reqDTO) {
        return goodsService.detail(1L);
    }

}
